From 8a2ab98cac4cf7fae7270497ed61ce291833672f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 8 Feb 2006 15:45:31 +0000 Subject: [PATCH] webif: add helpitem and helptext to common awk functions SVN-Revision: 3190 --- openwrt/package/webif/files/usr/lib/webif/common.awk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openwrt/package/webif/files/usr/lib/webif/common.awk b/openwrt/package/webif/files/usr/lib/webif/common.awk index 89e6c745be..a15a66b343 100644 --- a/openwrt/package/webif/files/usr/lib/webif/common.awk +++ b/openwrt/package/webif/files/usr/lib/webif/common.awk @@ -23,6 +23,14 @@ function button(name, caption) { return ">\" />" } +function helpitem(name) { + return "
@TR<<" name ">>:
" +} + +function helptext(short, name) { + return "
@TR<<" short "|" name ">>:
" +} + function sel_option(name, caption, default, sel) { if (default == name) sel = " selected=\"selected\"" else sel = "" -- 2.30.2